package com.ruoyi.service;

import java.text.ParseException;
import java.time.OffsetDateTime;
import java.util.List;
import java.util.Map;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.ruoyi.domain.dto.BookDto;
import com.ruoyi.pojo.dto.Dict;
import com.ruoyi.pojo.vo.BookVo;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysDictData;

/**
 * 图书管理Service接口
 *
 * @author qyb
 * @date 2023-12-26
 */
public interface IBookService
{
    AjaxResult addBook(BookDto bookDto);
    AjaxResult deleteBook(String ids);
    AjaxResult updateBook(BookDto bookDto);
    List<BookVo> searchBook(String searchByName,Integer pageSize,Integer pageNum);
    AjaxResult insertPublishAndLanguageDict(SysDictData sysDictData) throws ParseException;
    AjaxResult selectPublishAndLanguageDict(SysDictData sysDictData);
    AjaxResult selectBookAuthor(String type);
    AjaxResult addBookAuthor(String data) throws ParseException, JsonProcessingException;
    AjaxResult selectBookById(int id);
    AjaxResult selectAuthorAndPublishDict(Dict dict);


    Map<String,Integer> getAuthorBookNum();

    Map<String, Integer> getLanguageNum();

    int getTotal(String searchByName);

    Map<String, Integer> getEveryDayBookNum();

    void getBookNum();
}
